<div class="modal-header">
    <h4 class="modal-title">
        <fa-icon [icon]="'sync'" [spin]="!displayBranchUrl"></fa-icon>
        <span *ngIf="!displayBranchUrl">&nbsp;正在应用JDL模型</span>
    </h4>
    <button type="button" class="close" data-dismiss="modal" aria-hidden="true"
            (click)="clear()">&times;
    </button>
</div>
<div class="modal-body">
    <div class="container">
        <div class="row">
            <div class="col-md-12">
                <pre>
正在向服务器发送请求...
{{logs}}
                </pre>
            </div>
        </div>
        <div class="row" *ngIf="displayBranchUrl && selectedGitProvider === 'GitHub'">
            <div class="col-md-12">
                <div class="lead">
                    <b>JDL模型已应用！</b>
                    <ul>
                        <li>合并拉取请求，地址：<a href="{{githubHost}}/{{selectedGitCompany}}/{{selectedGitRepository}}/pulls" target="_blank">{{githubHost}}/{{selectedGitCompany}}/{{selectedGitRepository}}/pulls</a></li>
                        <li>打开您的GitHub分支，地址：<a href="{{githubHost}}/{{selectedGitCompany}}/{{selectedGitRepository}}/tree/jhipster-entities-{{applyJdlId}}" target="_blank">{{githubHost}}/{{selectedGitCompany}}/{{selectedGitRepository}}/tree/jhipster-entities-{{applyJdlId}}</a></li>
                    </ul>
                </div>
            </div>
        </div>
        <div class="row" *ngIf="displayBranchUrl && selectedGitProvider === 'GitLab'">
            <div class="col-md-12">
                <div class="lead">
                    <b>JDL模型已应用！</b>
                    <ul>
                        <li>合并合并请求，地址：<a href="{{gitlabHost}}/{{selectedGitCompany}}/{{selectedGitRepository}}/merge_requests" target="_blank">{{gitlabHost}}/{{selectedGitCompany}}/{{selectedGitRepository}}/merge_requests</a></li>
                        <li>打开您的GitLab分支，地址：<a href="{{gitlabHost}}/{{selectedGitCompany}}/{{selectedGitRepository}}/tree/jhipster-entities-{{applyJdlId}}" target="_blank">{{gitlabHost}}/{{selectedGitCompany}}/{{selectedGitRepository}}/tree/jhipster-entities-{{applyJdlId}}</a></li>
                    </ul>
                </div>
            </div>
        </div>
    </div>
</div>
<div class="modal-footer">
    <button type="submit" (click)="clear()" class="btn btn-primary">
        <fa-icon [icon]="'times-circle'"></fa-icon>&nbsp;关闭此窗口
    </button>
</div>
